package com.czxy.feignclient;

import com.czxy.domain.Teacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "teacherservice")
public interface TeacherClient {

    @GetMapping("/teacher/{teaid}")
    public Teacher findTeacherByTeaid(@PathVariable("teaid") Integer teaid);

}
